package com.exadel;

/**
 * Hello world!
 *
 * */

  public class App
{
    public static void main( String[] args )
    {
        FakeConnect fake = new FakeConnect();
        Connect conn = new Connect();
        YouTubeParser parser = new YouTubeParser();

        Connection connector = conn;
        YoutubeParseble p = parser;
       // connector.connect("E:\\YouTube.htm");

        connector.connect("http://www.youtube.com/watch?v=WFhJ4oQwa8A");
      //  connect.connect("E:\\YouTube.htm");
       // p.parse(connect.connect("E:\\YouTube.htm"));
        p.parse(connector);
        p.print();

        p.getToChild(5);
     }
}
